<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=p, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
        <ul>
                <li id="a1">1.动物世界</li>
                <li id="a2">2.丑八怪</li>
                <li class="a3">3.绅士</li>
                <li class="a4">4.狐狸</li>
                <li class="a5">5.天后</li>
                <li class="a6">6.一半</li>
                <li class="a7">7.认真的雪</li>
                <li class="a8">8.你还要我怎样</li>
            </ul>
</body>
<script>
        var lis=document.createElement('li')
        var list=document.querySelectorAll('li')
        var a1=document.getElementById('a1')
        var a2=document.getElementById('a2')
        console.log(lis)
        var ul=document.querySelector('ul')
        console.log(ul)
        var aa=document.createTextNode('啦啦啦啦')
        lis.appendChild(aa)
        ul.appendChild(lis)
        ul.removeChild(a1)
        ul.replaceChild(aa,a2)
        // ul.replaceChild(a2,aa)
        console.log(list[1])
        ul.insertAdjacentHTML('afterend','啦啦啦')
        list[2].insertAdjacentHTML('afterend','lll')
    </script>
</html>